import org.junit.Test;


public class Arrays {

	@Test
	public void Arraytest() throws Exception {
		
		String[] A1 = new String[4];  // One dimensional array
		A1[0] = "Mon";
		A1[1] = "Tue";
		A1[2] = "Wed";
		A1[3] = "Thur";
		
		for (int i = 0; i <4; i++){
			System.out.println("The sequesnce is " + i + " " + A1[i]);
		}
		
		
		String [] [] TwoD = new String [2] [3];
		TwoD[0][0] = "Row1 Col1";
		TwoD[0][1] = "Row1 Col2";
		TwoD[0][2] = "Row1 Col3";
		
		TwoD[1][0] = "Row2 Col1";
		TwoD[1][1] = "Row2 Col2";
		TwoD[1][2] = "Row2 Col3";
		
		for (int i = 0; i<2; i++){
		
		//System.out.println("Row" + (i+1) + " is from " + TwoD[i][0]);
		
		for (int j = 0; j<3; j++){    //nested for loop
			System.out.println("i is " + i);
			System.out.println("j is " + j);
		}
		
		}
		
			
		
			
	}
}
